#!/bin/sh

# Start the first process
/usr/local/tomcat/bin/catalina.sh run &

# Start the second process
./gateway &

# Wait for any process to exit
wait

# Exit with status of process that exited first
exit $?
